package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_area")
@Table(appliesTo = "mb_area", comment = "区域表")
public class Area {

	@ApiModelProperty(value = "地区CODE")
	@Id
	@Column(name = "id", columnDefinition = "VARCHAR(50)  NOT NULL COMMENT '区域CODE'")
	private String id;

	@ApiModelProperty(value = "地区名称")
	@Column(name = "area_name", columnDefinition = "VARCHAR(50)  NOT NULL COMMENT '地区名称'")
	private String areaName;

	@ApiModelProperty(value = "上级")
	@Column(name = "parent", columnDefinition = "VARCHAR(50)  NOT NULL COMMENT '上级'")
	private String parent;

	@ApiModelProperty(value = "等级")
	@Column(name = "level", columnDefinition = "INT(1)  NOT NULL COMMENT '等级'")
	private int level;

}
